import java.util.HashSet;

public class PlainTextCollector implements KeywordCollector{

	public HashSet<String> getKeywords(Resource res){
	
		TextFileIterator ti = new TextFileIterator(res);
		
		HashSet<String> textSet = new HashSet<String>();
		
		while(ti.hasNext()){
			String temp = ti.next();
			textSet.add(temp);
		}
		
		return textSet;
		
	}

}
